{{define "post/detail.html"}}
<!DOCTYPE html>
<html lang="en">

<head>
    <title>Post - {{.post.Title}}</title>
    <link href="/static/libs/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/css/blog-home.css" rel="stylesheet">
    <link href="/static/css/base.css" rel="stylesheet">
</head>

<body>
{{template "nav.html" .}}
<div class="container">
    <div class="row">

        <div class="col-sm-10 col-sm-offset-1">
            <article class="article">
                <h1>{{.post.Title}}</h1>
                <div>
                    <!-- show tags -->
                    <!-- show tags -->

                    <!-- display article created time -->
                    <span class="createdTime">
                        <span class="glyphicon glyphicon-calendar"></span>{{.post.CreatedAt}}
                    </span>

                    <span class="createdTime">
                        <span class="glyphicon glyphicon-eye-open"></span>{{.post.View}}&nbsp;&nbsp;
                    </span>

                </div><!-- display article info -->
                <br/>
                <div id="body">{{.post.Body}}</div>
            </article>
        </div>
    </div>
</div>

</body>
{{end}}